<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://" + request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>

<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>

<title>学习心得</title>





<link type="text/css" rel="stylesheet" href="<%=basePath%>css/xinde.css">
<script type="text/javascript" src="<%=basePath%>js/deleteConfirm.js"></script>
<script type="text/javascript" src="<%=basePath%>js/jquery-1.4.2.min.js"></script>
<script type="text/javascript" src="<%=basePath%>js/xinde.js"></script>

</head>
<body>

<div class="container">
<table cellpadding="0" cellspacing="0" border="0" width="100%">

	<tr>
		<td>
		<div class="header">
		<div class="header_left">心得列表</div>

		<div class="header_right"><a
			href="<%=basePath%>/page/xinde/addXinde.jsp">添加心得</a></div>
		</div>
		</td>
	</tr>

	<tr>
		<td><c:forEach items="${requestScope.list}" var="vo"
			varStatus="status">

			<div ondblclick="getAppercetionBodyById(${vo.appercetionId})">
			<div class="title">
			<div class="header_left">${vo.appercetionTitle}</div>
			<div class="header_right"><a
				href="javascript:getAppercetionBodyById(${vo.appercetionId})">↓查看/收起全文↓</a></div>
			</div>
			<div class="date" id="date${vo.appercetionId}">
			发表时间：${vo.publishTime }&nbsp;&nbsp;作者：${vo.publisher }</div>
			<div class="opt"><a
				href="<%=basePath%>page/xinde/update.jsp?appercetionID=${vo.appercetionId }&role=officeUser">编辑</a>|
			<a href="javascript:deleteXinde(${vo.appercetionId },'officeUser')">删除</a>|

			<c:choose>
				<c:when test="${vo.visiable == 1}">
					<a
						href="appercetion?action=setPublic&visiable=0&appercetionID=${vo.appercetionId }&role=officeUser">设置为不公开</a>
				</c:when>

				<c:otherwise>
					<a
						href="appercetion?action=setPublic&visiable=1&appercetionID=${vo.appercetionId }&role=officeUser">设置为公开</a>
				</c:otherwise>
			</c:choose></div>


			<c:choose>
				<c:when test="${status.last == false}">

					<div class="line"></div>

				</c:when>

			</c:choose></div>

		</c:forEach></td>
	</tr>
</table>
</div>
</body>


</html>
